package com.macro.mall.tiny.component.sms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.stereotype.Component;

/**
 * 短信发送者
 */
@Component
public class SmsSender {

    private static final Logger LOGGER = LoggerFactory.getLogger(SmsSender.class);
//    @Autowired
//    private AmqpTemplate amqpTemplate;

    public void sendMessage(String msg){
        //给延迟队列发送消息
//        amqpTemplate.convertAndSend("mall.sms", msg);
        LOGGER.info("send rabbitmq msg:{}",msg);
    }
}
